package com.atguigu.order.feigin;


import com.atguigu.Product.Product;
import com.atguigu.order.callback.ProductFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value= "service-product",fallback = ProductFeignClientFallback.class)
public interface ProductFeignClient {

    @GetMapping("/product/getProduct/{id}")
    Product getProductById(@PathVariable("id") Long id);

}
